const http = require('http')
let app = http.createServer((req,res)=>{
   res.setHeader('Content-type','text/html; charset=utf-8')
    console.log(req.url);
    console.log(req.method);
    //console.log(req);
   res.end('req')
})
app.listen(8001,()=>{
    console.log('server running at http://127.0.0.1');
})